<?php

$arr = array(
      1=>
        array(
            "city"=> "agra",
            "state"=>"UP",
            "zone"=>"East",
             "id" => array(
                "zip"=>"110017",
                "region"=>"middle",
              ),
          ),
      2=>
        array(
            "city"=> "agra2",
            "state"=>"UP2",
            "zone"=>"East2",
            "id"=>  array(
                "zip"=>"110018",
                "region"=>"right",
              ),
           ),
        3=>
        array(
            "city"=> "agra3",
            "state"=>"UP3",
            "zone"=>"East3",
             "id"=>array(
                "zip"=>"110019",
                "region"=>"general",
              ),
           ),
            );

display($arr);

function display($arr) {

  foreach ($arr as $key=>$value){
    if(is_array($value)){
      display($value);
    } else {
      echo "$key=>$value \n\n";
    }
  }

}
